<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.16"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>LibTools: CSingleFactor&lt; T &gt; 模板类 参考</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">LibTools
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- 制作者 Doxygen 1.8.16 -->
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(function() {
  initMenu('',false,false,'search.php','搜索');
});
/* @license-end */</script>
<div id="main-nav"></div>
</div><!-- top -->
<div class="header">
  <div class="summary">
<a href="#pub-static-methods">静态 Public 成员函数</a> &#124;
<a href="#pri-static-attribs">静态 Private 属性</a> &#124;
<a href="class_c_single_factor-members.html">所有成员列表</a>  </div>
  <div class="headertitle">
<div class="title">CSingleFactor&lt; T &gt; 模板类 参考</div>  </div>
</div><!--header-->
<div class="contents">

<p>单例模式工具类  
 <a href="class_c_single_factor.html#details">更多...</a></p>

<p><code>#include &lt;<a class="el" href="_single_factory_8h_source.html">SingleFactory.h</a>&gt;</code></p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-static-methods"></a>
静态 Public 成员函数</h2></td></tr>
<tr class="memitem:ae07259bae0cbb58e32f263b27ac027c8"><td class="memItemLeft" align="right" valign="top">static T *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_c_single_factor.html#ae07259bae0cbb58e32f263b27ac027c8">GetInstance</a> ()</td></tr>
<tr class="memdesc:ae07259bae0cbb58e32f263b27ac027c8"><td class="mdescLeft">&#160;</td><td class="mdescRight">生成一个单列模式实例  <a href="class_c_single_factor.html#ae07259bae0cbb58e32f263b27ac027c8">更多...</a><br /></td></tr>
<tr class="separator:ae07259bae0cbb58e32f263b27ac027c8"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pri-static-attribs"></a>
静态 Private 属性</h2></td></tr>
<tr class="memitem:aea2062281f4f7a23b7a2631f00bcaa5d"><td class="memItemLeft" align="right" valign="top">static <a class="el" href="class_shared_ptr.html">SharedPtr</a>&lt; T &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_c_single_factor.html#aea2062281f4f7a23b7a2631f00bcaa5d">g_singlePtr</a></td></tr>
<tr class="separator:aea2062281f4f7a23b7a2631f00bcaa5d"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a3dca33cfa7dd14c8031fc52f99c51a6e"><td class="memItemLeft" align="right" valign="top">static <a class="el" href="class_c_mutex.html">CMutex</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_c_single_factor.html#a3dca33cfa7dd14c8031fc52f99c51a6e">g_mutexPtr</a></td></tr>
<tr class="separator:a3dca33cfa7dd14c8031fc52f99c51a6e"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">详细描述</h2>
<div class="textblock"><h3>template&lt;class T&gt;<br />
class CSingleFactor&lt; T &gt;</h3>

<p>单例模式工具类 </p>

<p class="definition">在文件 <a class="el" href="_single_factory_8h_source.html">SingleFactory.h</a> 第 <a class="el" href="_single_factory_8h_source.html#l00013">13</a> 行定义.</p>
</div><h2 class="groupheader">成员函数说明</h2>
<a id="ae07259bae0cbb58e32f263b27ac027c8"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ae07259bae0cbb58e32f263b27ac027c8">&#9670;&nbsp;</a></span>GetInstance()</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;class T &gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">static T* <a class="el" href="class_c_single_factor.html">CSingleFactor</a>&lt; T &gt;::GetInstance </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>生成一个单列模式实例 </p>

<p class="definition">在文件 <a class="el" href="_single_factory_8h_source.html">SingleFactory.h</a> 第 <a class="el" href="_single_factory_8h_source.html#l00020">20</a> 行定义.</p>

</div>
</div>
<h2 class="groupheader">类成员变量说明</h2>
<a id="a3dca33cfa7dd14c8031fc52f99c51a6e"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a3dca33cfa7dd14c8031fc52f99c51a6e">&#9670;&nbsp;</a></span>g_mutexPtr</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;class T &gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="class_c_mutex.html">CMutex</a> <a class="el" href="class_c_single_factor.html">CSingleFactor</a>&lt; T &gt;::g_mutexPtr</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span><span class="mlabel">private</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p class="definition">在文件 <a class="el" href="_single_factory_8h_source.html">SingleFactory.h</a> 第 <a class="el" href="_single_factory_8h_source.html#l00017">17</a> 行定义.</p>

</div>
</div>
<a id="aea2062281f4f7a23b7a2631f00bcaa5d"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aea2062281f4f7a23b7a2631f00bcaa5d">&#9670;&nbsp;</a></span>g_singlePtr</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;class T &gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="class_shared_ptr.html">SharedPtr</a>&lt; T &gt; <a class="el" href="class_c_single_factor.html">CSingleFactor</a>&lt; T &gt;::g_singlePtr</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span><span class="mlabel">private</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p class="definition">在文件 <a class="el" href="_single_factory_8h_source.html">SingleFactory.h</a> 第 <a class="el" href="_single_factory_8h_source.html#l00016">16</a> 行定义.</p>

</div>
</div>
<hr/>该类的文档由以下文件生成:<ul>
<li>H:/project/LibTools/src/tools/cpptools/<a class="el" href="_single_factory_8h_source.html">SingleFactory.h</a></li>
</ul>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
制作者 &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.16
</small></address>
</body>
</html>
